﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Models
{
   public class Personnel
    {
        [Required(ErrorMessage = "用户名必须填")]
        public string Name { get; set; }

        [Range(1,100,ErrorMessage ="Age参数只能 大于1 小于100")]
        public int Aage { get; set; }

        [Required(ErrorMessage ="电话号码必填")]
        [RegularExpression("^[1]+[3,4,5,7,8]+\\d{9}",ErrorMessage ="电话格式不正确")]
        public string PhoneNum { get; set; }

        [Required(ErrorMessage = "用户名必须填2")]
        public string Process_Name { get; set; }
        
    }
}
